import 'dart:ui';

import 'package:fish_redux/fish_redux.dart';
import 'package:www.znpigai.teacher/global_store/state.dart';

import 'item/state.dart';

class MessageListState implements GlobalBaseState, Cloneable<MessageListState> {
  bool isLoading = false; // 是否正在请求数据中

  List<MessageState> items = <MessageState>[];
  int pageIndex = GlobalState.firstPageIndex; // 页面索引
  int pageTotal = 1; // 页面总数

  MessageListState();

  @override
  MessageListState clone() {
    return MessageListState()
      ..items = items
      ..pageIndex = pageIndex
      ..pageTotal = pageTotal
      ..isLoading = isLoading;
  }

  @override
  Color themeColor;

  @override
  Map<String, dynamic> userInfo;
}

MessageListState initState(Map<String, dynamic> args) {
  return MessageListState();
}
